<template>
  <div class="detail">
      detail
  </div>
</template>

<script>
export default {
    mounted(){
        console.log(this.$route.query.id);
    },
    activated(){
        console.log(this.$route.query.id);
    }
}
</script>

<style scoped>
.detail{
    height: 2000px;
    background-color: #eee;
}
</style>